package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



//@Data
//@NoArgsConstructor
//@AllArgsConstructor
public class User {




        private Integer id; //ID
        private String username; //用户名
        private String password; //密码
        private String name; //姓名
        private Integer age; //年龄


        public User() {
        }

        public User(Integer id, String username, String password, String name, Integer age) {
                this.id = id;
                this.username = username;
                this.password = password;
                this.name = name;
                this.age = age;
        }

        /**
         * 获取
         * @return id
         */
        public Integer getId() {
                return id;
        }

        /**
         * 设置
         * @param id
         */
        public void setId(Integer id) {
                this.id = id;
        }

        /**
         * 获取
         * @return username
         */
        public String getUsername() {
                return username;
        }

        /**
         * 设置
         * @param username
         */
        public void setUsername(String username) {
                this.username = username;
        }

        /**
         * 获取
         * @return password
         */
        public String getPassword() {
                return password;
        }

        /**
         * 设置
         * @param password
         */
        public void setPassword(String password) {
                this.password = password;
        }

        /**
         * 获取
         * @return name
         */
        public String getName() {
                return name;
        }

        /**
         * 设置
         * @param name
         */
        public void setName(String name) {
                this.name = name;
        }

        /**
         * 获取
         * @return age
         */
        public Integer getAge() {
                return age;
        }

        /**
         * 设置
         * @param age
         */
        public void setAge(Integer age) {
                this.age = age;
        }

        public String toString() {
                return "User{id = " + id + ", username = " + username + ", password = " + password + ", name = " + name + ", age = " + age + "}";
        }
}
